Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.13 compatibility #474

Merged
merged 17 commits into from
Oct 18, 2024
Merged

Add Python 3.13 compatibility #474

merged 17 commits into from
Oct 18, 2024

Conversation

pjbull
Copy link
Member

@pjbull pjbull commented Sep 20, 2024

Add support for Python 3.13, which was released Oct 1, 2024.

The tricky thing here is that the glob logic in CPython has been totally updated and moved around. We depend on the pre-313 private API for the parsing of the pattern language and inclusion/exclusion as we do the tree walking. Vendored that logic for the time being, but we should try a different implementation.

Issue #479 has been filed to track making the right improvements to the globbing logic.

Other changes and todos for 3.13:

Bonus:

  • is_dir and is_file had the same implementation for every provider, so refactored back to parent class.

Closes #472

Copy link
Contributor

github-actions bot commented Sep 20, 2024

@github-actions github-actions bot temporarily deployed to pull request September 20, 2024 16:23 Inactive
@github-actions github-actions bot temporarily deployed to pull request September 20, 2024 16:27 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 15, 2024 04:58 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 15, 2024 05:12 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 16, 2024 04:59 Inactive
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

Attention: Patch coverage is 98.38710% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.4%. Comparing base (68774bf) to head (6401346).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
cloudpathlib/cloudpath.py 97.8% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #474     +/-   ##
========================================
+ Coverage    94.2%   94.4%   +0.1%     
========================================
  Files          23      23             
  Lines        1753    1776     +23     
========================================
+ Hits         1653    1677     +24     
+ Misses        100      99      -1     
Files with missing lines Coverage Δ
cloudpathlib/azure/azblobpath.py 93.2% <ø> (-0.5%) ⬇️
cloudpathlib/gs/gspath.py 93.6% <ø> (-0.6%) ⬇️
cloudpathlib/local/localclient.py 90.0% <100.0%> (+0.6%) ⬆️
cloudpathlib/local/localpath.py 94.4% <100.0%> (ø)
cloudpathlib/s3/s3path.py 97.7% <ø> (-0.2%) ⬇️
cloudpathlib/cloudpath.py 94.9% <97.8%> (+0.3%) ⬆️

@github-actions github-actions bot temporarily deployed to pull request October 16, 2024 06:34 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 16, 2024 06:38 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 16, 2024 06:41 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 16, 2024 16:57 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 03:03 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 03:50 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 04:11 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 04:50 Inactive
@pjbull pjbull marked this pull request as ready for review October 17, 2024 05:00
@pjbull pjbull requested a review from jayqi October 17, 2024 05:00
@github-actions github-actions bot temporarily deployed to pull request October 17, 2024 05:01 Inactive
@pjbull pjbull changed the title WIP: Add Python 3.13 compatibility Add Python 3.13 compatibility Oct 17, 2024
HISTORY.md Outdated Show resolved Hide resolved
cloudpathlib/cloudpath.py Outdated Show resolved Hide resolved
tests/test_cloudpath_manipulation.py Outdated Show resolved Hide resolved
cloudpathlib/cloudpath.py Outdated Show resolved Hide resolved
cloudpathlib/cloudpath.py Outdated Show resolved Hide resolved
HISTORY.md Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request October 18, 2024 18:48 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 18, 2024 19:17 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 18, 2024 19:27 Inactive
@github-actions github-actions bot temporarily deployed to pull request October 18, 2024 19:47 Inactive
@pjbull pjbull merged commit 5f5e054 into master Oct 18, 2024
28 checks passed
@pjbull pjbull deleted the 472-py313 branch October 18, 2024 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cloudpathlib has incompatibilities with python 3.13
2 participants